import { createRouter, createWebHashHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';
import HanZiView from '../views/HanZiView.vue';
import OralArithmetic from '../views/OralArithmetic.vue';

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/jjf',
      name: 'jjf',
      component: OralArithmetic,
    },
    {
      path: '/hz',
      name: 'hz',
      component: HanZiView,
    },
    {
      path: '/baiduhangyu',
      name: 'baiduhangyu',
      component: () => import("@/views/BaiDuHanYu.vue"),
    },
  ],
});
import { useRoute, useRouter } from 'vue-router'
export { useRoute, useRouter }

export default router;
